//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.aidong.model;

import com.aidong.model.wills.DicShopCode;
import com.aidong.model.wills.SysUser;
import java.util.Date;
import java.util.Map;

public class LoginUser {
    private SysUser userInfo;
    private DicShopCode loginShop;
    private String shopsJson;
    private Map<String, String> shopsMap;
    private int msgNum;
    private String sessionId;
    private long loginTime;
    private long accessTime;
    private int loginStatus;
    private String ipAddr;
    private String osType;

    public LoginUser(SysUser sysUser) {
        this.userInfo = sysUser;
    }

    public SysUser getUserInfo() {
        return this.userInfo;
    }

    public String getUserCode() {
        return this.userInfo == null?null:this.userInfo.getUserCode();
    }

    public DicShopCode getLoginShop() {
        return this.loginShop;
    }

    public void setLoginShop(DicShopCode loginShop) {
        this.loginShop = loginShop;
    }

    public String getShopCode() {
        return this.loginShop == null?null:this.loginShop.getCode();
    }

    public String getShopsJson() {
        return this.shopsJson;
    }

    public void setShopsJson(String shopsJson) {
        this.shopsJson = shopsJson;
    }

    public Map<String, String> getShopsMap() {
        return this.shopsMap;
    }

    public void setShopsMap(Map<String, String> shopsMap) {
        this.shopsMap = shopsMap;
    }

    public int getMsgNum() {
        return this.msgNum;
    }

    public void setMsgNum(int msgNum) {
        this.msgNum = msgNum;
    }

    public String getSessionId() {
        return this.sessionId;
    }

    public void setSessionId(String sessionId) {
        this.sessionId = sessionId;
    }

    public long getLoginTime() {
        return this.loginTime;
    }

    public Date getLoginTimeD() {
        return new Date(this.loginTime);
    }

    public void setLoginTime(long loginTime) {
        this.loginTime = loginTime;
    }

    public long getAccessTime() {
        return this.accessTime;
    }

    public Date getAccessTimeD() {
        return new Date(this.accessTime);
    }

    public void updateAccessTime() {
        this.accessTime = System.currentTimeMillis();
    }

    public int getLoginStatus() {
        return this.loginStatus;
    }

    public void setLoginStatus(int loginStatus) {
        this.loginStatus = loginStatus;
    }

    public String getIpAddr() {
        return this.ipAddr;
    }

    public void setIpAddr(String ipAddr) {
        this.ipAddr = ipAddr;
    }

    public String getOsType() {
        return this.osType;
    }

    public void setOsType(String osType) {
        this.osType = osType;
    }
}
